package com.clip.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.clip.dao.UserRegInvitesDAO;
import com.clip.entity.UserRegInvites;

@Service
@Transactional
public class UserRegInvitesService {
	@Autowired
	private UserRegInvitesDAO userRegInvitesDAO;
	
	public UserRegInvites findUserRegInvitesByCode(String code){
		List<UserRegInvites> uriList =this.userRegInvitesDAO.findByProperty("code",code);
		UserRegInvites uri = uriList!=null&&uriList .size()>0 ? uriList.get(0) : null;
		return uri;
	}
}
